package com.sunwayhorizo.health.platform.security.dao.impl;

import javax.ejb.Stateless;

import org.jboss.seam.annotations.Name;

import com.sunwayhorizo.health.platform.base.BaseManager;
import com.sunwayhorizo.health.platform.security.dao.SecurityPermissionAccountDao;

@Stateless
@Name("SecurityPermissionAccountDao")
public class SecurityPermissionAccountImpl extends BaseManager implements SecurityPermissionAccountDao{

	@Override
	public void deleteSecurityPermissionAccountByAccountId(String accountId) {
		super.entityManager2.createQuery("delete from SecurityPermissionAccount sp where sp.account.accountId= :accountId").setParameter("accountId", accountId).executeUpdate();
		super.flushClear(entityManager2);
	}
}